--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--[[
    复制官方的FX 并修改。
    
    {
        name = "halloween_firepuff_1",
        bank = "halloween_embers",
        build = "halloween_embers",
        anim = "puff_1",
        bloom = true,
        sound = "dontstarve/common/fireAddFuel",
        fn = FinalOffset3,
    },
    {
        name = "halloween_firepuff_2",
        bank = "halloween_embers",
        build = "halloween_embers",
        anim = "puff_2",
        bloom = true,
        sound = "dontstarve/common/fireAddFuel",
        fn = FinalOffset3,
    },
    {
        name = "halloween_firepuff_3",
        bank = "halloween_embers",
        build = "halloween_embers",
        anim = "puff_3",
        bloom = true,
        sound = "dontstarve/common/fireAddFuel",
        fn = FinalOffset3,
    },

]]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local fx = require("fx") or {}

local target_fx = {
    ["halloween_firepuff_1"] = true,
    ["halloween_firepuff_2"] = true,
    ["halloween_firepuff_3"] = true,
}
local new_fx_data = {}
local index_num = 1
for k, data in pairs(fx) do
    if target_fx[data.name] then
        table.insert(new_fx_data,{
            name = "hutao_sfx_pink_flame_" .. index_num,
            bank = data.bank,
            build = data.build,
            -- build = "hutao_sfx_pink_flame",
            anim = data.anim,
            bloom = data.bloom,
            sound = data.sound,
            fn = function(inst)
                inst.AnimState:SetAddColour(255/255,0/255,153/255,1)
                data.fn(inst)
            end,
        })
        index_num = index_num + 1
    end
end

for k, v in pairs(new_fx_data) do
    table.insert(fx, v)
end